package com.crm.Service;

import com.crm.pojo.Customer;
import com.crm.pojo.CustomerDetail;

import java.sql.SQLException;
import java.util.List;

public interface CustomerService {
	
	boolean addCustomer(Customer cc, CustomerDetail ccd) throws SQLException;

	List<Customer> allCustomers(int start, int pagesize);

	List<String> queryCname();

	boolean delCustomer(int id);
	
	Customer getCs(Integer cid);

	CustomerDetail getCsD(Integer cid);
	
	boolean upCustomer(Customer cc, CustomerDetail ccd);

	List<Customer> queryCustomByName(String name);

	Customer queryCustomById(int id);

	CustomerDetail queryCustomDetailById(int id);

	void updateCustomer(int custId,String custName, String custSource,
						String custIndustry, String custLevel, String custPhone,
						String custMobile, String custRegion, long custCapital,
						String custAddress, String custMemo, String custFax,
						String custWebsite, String custLicence, String custPic,
						String custCorporation, String custBank);
	

}
